﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="OrderDetail.aspx.cs" Inherits="ProductManager_OrderDetail" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
  <ContentTemplate>
    <table cellpadding="0" cellspacing="0" class="style1">
        <tr>
            <td class="style3" style="width: 131px">
                <input id="hidOrderId" type="hidden" runat="server" />
                <asp:LinkButton ID="btnPay" runat="server" onclick="btnPay_Click">支付</asp:LinkButton>
                &nbsp; 
                &nbsp;</td>
            <td>
                <asp:LinkButton ID="btnReturnMoney" runat="server" 
                    onclick="btnReturnMoney_Click">退款</asp:LinkButton>
            </td>
            <td>
                <asp:LinkButton ID="btnSend" runat="server" onclick="btnSend_Click">发货</asp:LinkButton>
            </td>
            <td>
                <asp:LinkButton ID="btnReturnPrdt" runat="server" onclick="btnReturnPrdt_Click">退货</asp:LinkButton>
            </td>
            <td>
                <asp:LinkButton ID="btnFinish" runat="server" onclick="btnFinish_Click">完成</asp:LinkButton>
            </td>
            <td>
                <asp:LinkButton ID="btnAbolish" runat="server" onclick="btnAbolish_Click">作废</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td class="style3" style="width: 131px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table class="style1" style="height: 251px; width:800px" cellpadding="0" 
        cellspacing="0">
        <tr>
           <%--<td valign="top" style="height: 307px; font-weight: 700;">--%>
            <td valign="top" style="height: 307px">
                <b>订单商品</b><asp:GridView ID="gvEachOrder" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField HeaderText="商品名称" DataField="ProductID" ItemStyle-Width="75px" />
                <asp:BoundField HeaderText="商品数量" DataField="Quantity" ItemStyle-Width="75px"  />
            </Columns>
        </asp:GridView>
            </td>
            <td valign="top" style="height: 307px">
                <b>商品价格</b>
                <asp:FormView ID="fvPrdtCost" runat="server">
                     <ItemTemplate>
                     <table>
                     <tr>
                     <td  style="width:75px">商品总额:</td>
                     <td  style="width:75px"><asp:Label ID="lblTotalPrice" runat="server" Text='<%# Eval("TotalPrice") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>配送费用:</td>
                     <td><asp:Label ID="Label1" runat="server" Text='<%# Eval("PostPrice") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>订单总额:</td>
                     <td></td>
                     </tr>
                     <tr>
                     <td>已支付金额:</td>
                     <td></td>
                     </tr>
                     </table>
                     </ItemTemplate>
                </asp:FormView>
                <%--<asp:ListView ID="ListView1" runat="server" GroupItemCount="1">
                <GroupTemplate>
                    <tr>
                        <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                    </tr>
                </GroupTemplate>
                <LayoutTemplate>
                    <table>
                        <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
                    </table>
                    <asp:DataPager ID="DataPager1" runat="server" PagedControlID="ListView1" 
                        PageSize="1" Visible="false">
                        <Fields>
                            <asp:NumericPagerField />
                        </Fields>
                    </asp:DataPager>
                </LayoutTemplate>
                <ItemTemplate>
                     <td>商品总额:</td>
                     <td><asp:Label ID="lblTotalPrice" runat="server" Text='<%# Eval("TotalPrice") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>配送费用:</td>
                     <td><asp:Label ID="Label1" runat="server" Text='<%# Eval("PostPrice") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>订单总额:</td>
                     <td></td>
                     </tr>
                     <tr>
                     <td>已支付金额:</td>
                     <td></td>
                </ItemTemplate>
                </asp:ListView>--%>
                                            </b>
            </td>
            <td valign="top" style="height:307px">
                <b>订单其他信息</b>
                <%--<asp:DetailsView ID="dvOther" runat="server" 
                    AutoGenerateRows="False" Height="50px" Width="125px" Visible="False">
                    <Fields>
                        <asp:BoundField HeaderText="配送方式:" DataField="AcceptType" />
                        <asp:BoundField HeaderText="配送保价:" />
                        <asp:BoundField HeaderText="支付方式:" DataField="PayType" />
                        <asp:BoundField HeaderText="是否开发票:" />
                        <asp:BoundField HeaderText="发票抬头:" />
                        <asp:BoundField HeaderText="获得积分:" />
                    </Fields>
                </asp:DetailsView>--%>
                <asp:FormView ID="fvOther" runat="server">
                    <ItemTemplate>
                        <table>
                            <tr>
                                <td style="width:75px">
                                    配送方式:</td>
                                <td style="width:75px">
                                    <asp:Label ID="lblTotalPrice0" runat="server" Text='<%# Eval("AcceptType") %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    配送保价:</td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    支付方式:</td>
                                <td>
                                    <asp:Label ID="Label11" runat="server" Text='<%# Eval("PayType") %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    是否开发票:</td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    发票抬头:</td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    获得积分:</td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:FormView>
                </b>
                </td>
            <td valign="top" style="height: 307px">
                <b>备注<br />
                </b>自动生成订单状态历史</td>
            <td valign="top" style="height: 307px">
                <b>购买人信息</b>
                <%--<asp:DetailsView ID="dvCustomer" runat="server" 
                    AutoGenerateRows="False" Height="50px" Width="125px">
                    <Fields>
                        <asp:BoundField HeaderText="用户名:" DataField="UserID" />
                        <asp:BoundField HeaderText="姓名:" DataField="UserName" />
                        <asp:BoundField HeaderText="E-Mail:" DataField="UserID" />
                        <asp:BoundField HeaderText="电话:" DataField="AcceptPeople" />
                    </Fields>
                </asp:DetailsView>--%>
                <asp:FormView ID="fvCustomer" runat="server">
                     <ItemTemplate>
                     <table>
                     <tr>
                     <td style="width:50px">用户名:</td>
                     <td style="width:75px"><asp:Label ID="lblTotalPrice" runat="server" Text='<%# Eval("UserID") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>姓名:</td>
                     <td><asp:Label ID="Label2" runat="server" Text='<%# Eval("UserName") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>E-Mail:</td>
                     <td><asp:Label ID="Label1" runat="server" Text='<%# Eval("UserID") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>电话:</td>
                     <td><asp:Label ID="Label3" runat="server" Text='<%# Eval("AcceptPeople") %>'></asp:Label></td>
                     </tr>
                     </table>
                     </ItemTemplate>
                </asp:FormView>
              </td>
            <td valign="top" style="height: 307px">
                <b>收货人信息</b>
                <%--<asp:DetailsView ID="dvReceiver" runat="server" 
                    AutoGenerateRows="False" Height="50px" Width="125px">
                    <Fields>
                        <asp:BoundField HeaderText="发货日期:" DataField="ID" />
                        <asp:BoundField HeaderText="省:" DataField="Province" />
                        <asp:BoundField DataField="City" HeaderText="市:" />
                        <asp:BoundField DataField="County" HeaderText="区/县:" />
                        <asp:BoundField DataField="DetailStreet" HeaderText="街道:" />
                        <asp:BoundField HeaderText="邮编:" DataField="ZipCode" />
                        <asp:BoundField HeaderText="收货人姓名:" DataField="UserName" />
                        <asp:BoundField HeaderText="收货人手机:" DataField="AcceptPeople" />
                        <asp:BoundField DataField="AcceptPeopleTel" HeaderText="电话:" />
                    </Fields>
                </asp:DetailsView>--%>
                <asp:FormView ID="fvReceiver" runat="server">
                     <ItemTemplate>
                     <table>
                     <tr>
                     <td style="width:75px">发货日期:</td>
                     <td style="width:100px"><asp:Label ID="lblTotalPrice" runat="server" Text='<%# Eval("ID") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>省:</td>
                     <td><asp:Label ID="Label4" runat="server" Text='<%# Eval("Province") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>市:</td>
                     <td><asp:Label ID="Label1" runat="server" Text='<%# Eval("City") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>区/县:</td>
                     <td><asp:Label ID="Label5" runat="server" Text='<%# Eval("County") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>街道:</td>
                     <td><asp:Label ID="Label6" runat="server" Text='<%# Eval("DetailStreet") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>邮编:</td>
                     <td><asp:Label ID="Label7" runat="server" Text='<%# Eval("ZipCode") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>收货人姓名:</td>
                     <td><asp:Label ID="Label8" runat="server" Text='<%# Eval("UserName") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>收货人手机:</td>
                     <td><asp:Label ID="Label9" runat="server" Text='<%# Eval("AcceptPeople") %>'></asp:Label></td>
                     </tr>
                     <tr>
                     <td>电话:</td>
                     <td><asp:Label ID="Label10" runat="server" Text='<%# Eval("AcceptPeopleTel") %>'></asp:Label></td>
                     </tr>
                     </table>
                     </ItemTemplate>
                </asp:FormView>
                </td>
        </tr>
    </table>
  </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

